#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
typedef long long LL;
int main()
{
	int n, m;
	cin >> n >> m;
	if (n % m == 0) cout << "yes" << endl;
	else  cout << "no" << endl;
	return 0;
}